import request from '@/utils/request'

// 查询形态转换单列表
export function listMaterialconversions(query) {
  return request({
    url: '/wm/materialconversions/list',
    method: 'get',
    params: query
  })
}

// 查询形态转换单详细
export function getMaterialconversions(id) {
  return request({
    url: '/wm/materialconversions/' + id,
    method: 'get'
  })
}

// 新增形态转换单
export function addMaterialconversions(data) {
  return request({
    url: '/wm/materialconversions',
    method: 'post',
    data: data
  })
}

// 修改形态转换单
export function updateMaterialconversions(data) {
  return request({
    url: '/wm/materialconversions',
    method: 'put',
    data: data
  })
}

// 新增形态转换单
export function addMaterialconversionsAll(data) {
  return request({
    url: '/wm/materialconversions/addAll',
    method: 'post',
    data: data
  })
}

// 修改形态转换单
export function updateMaterialconversionsAll(data) {
  return request({
    url: '/wm/materialconversions/editAll',
    method: 'put',
    data: data
  })
}



// 删除形态转换单
export function delMaterialconversions(id) {
  return request({
    url: '/wm/materialconversions/' + id,
    method: 'delete'
  })
}

// 审核入库形态转换单
export function shenhe(id) {
  return request({
    url: '/wm/materialconversions/handleData/' + id,
    method: 'get'
  })
}

// 提交形态转换单
export function tijiao(id) {
  return request({
    url: '/wm/materialconversions/tijiao/' + id,
    method: 'get'
  })
}
